package problem231_Power_of_Two;

public class Solution {
	 public boolean isPowerOfTwo(int n) {
		 return n>0&&((n&-n)^n)==0;
		 //return n>0&&(n&(n-1))==0;
	 }
	 
	 public static void main(String[] args){
		 System.out.println(new Solution().isPowerOfTwo(4));
	 }
}
